package module02.task03;

/**
 * 用户消费信息类 特征：统计通话时长、统计上网流量、每月消费金额
 */
public class UserData {
    int airtimeUsage;
    int dataUsage;
    int monthlyConsumption;

    public UserData(){

    }

    public UserData(int airtimeUsage, int dataUsage, int monthlyConsumption){
        setAirtimeUsage(airtimeUsage);
        setDataUsage(dataUsage);
        setMonthlyConsumption(monthlyConsumption);
    }

    public int getAirtimeUsage() {
        return airtimeUsage;
    }

    public void setAirtimeUsage(int airtimeUsage) {
        this.airtimeUsage = airtimeUsage;
    }

    public int getDataUsage() {
        return dataUsage;
    }

    public void setDataUsage(int dataUsage) {
        this.dataUsage = dataUsage;
    }

    public int getMonthlyConsumption() {
        return monthlyConsumption;
    }

    public void setMonthlyConsumption(int monthlyConsumption) {
        this.monthlyConsumption = monthlyConsumption;
    }

    public void show(){
        System.out.println("用户已用通话时间：" + getAirtimeUsage());
        System.out.println("用户已用流量" + getDataUsage());
        System.out.println("用户本月消费金额：" + getMonthlyConsumption());
    }
}
